#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<math.h>
#include<string.h>

int main(void)
{
	int m, n;
	for (m = 1; m < 5; m++)
	{
		for (n = 0; n <= 8; n++)
			printf("$");
		printf("\n");
	}
	return 0;
}